#ifndef MATERIALFORM_H
#define MATERIALFORM_H

#include <QWidget>
#include "Lighting.h"

namespace Ui {
class MaterialForm;
}

class MaterialForm : public QWidget
{
    Q_OBJECT

public:
    explicit MaterialForm(QWidget *parent = nullptr);
    ~MaterialForm();

    void initMaterial(const Material& material);

signals:
    void materialChanged(const Material& material);

private slots:
    void componentChanged(double value);
    void componentChanged(const QVector3D& color);

private:
    Ui::MaterialForm *ui;
};

#endif // MATERIALFORM_H
